package net.linku.model.req.privilege;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 新增/更新权限的实体类
 *
 * @author SilenceTian
 * @date 2024/7/14
 */
@ApiModel(description = "新增/更新权限的实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminPrivilegeReq {
    /**
     * 权限id
     */
    @ApiModelProperty(value = "权限id")
    private Long id;

    /**
     * 租户ID, 值集 0 是大众租户 1是后端集团租户
     */
    @ApiModelProperty(value = "租户ID, 值集 0 是大众租户 1是后端集团租户")
    private Long tenantId;

    /**
     * 所属菜单Id
     */
    @NotNull(message = "所属菜单Id不能为空")
    @ApiModelProperty(value = "所属菜单Id", required = true)
    private Long menuId;

    /**
     * 功能点名称
     */
    @NotBlank(message = "功能点名称不能为空")
    @ApiModelProperty(value = "功能点名称", required = true)
    private String name;

    /**
     * 功能描述
     */
    @NotNull(message = "功能描述不能为空")
    @ApiModelProperty(value = "功能描述", required = true)
    private String description;

    /**
     * url
     */
    @ApiModelProperty(value = "url")
    private String url;

    /**
     * 方法名
     */
    @ApiModelProperty(value = "方法名")
    private String method;
}
